<?php

$error = Array();
//Validate prevous step
switch ($step - 1) {
  case 2:
    $foo = 'bar' ;

    break;
  case 1:
    $foo = 'bar' ;
    
    break;
    default:
    $foo = 'bar' ;
    
    break;
}

$show = !empty($error) || $step == 1 ? $step : $step ;
?>
<div class="step-container">
  <h2 class="ui-corner-all ui-widget-header">Step <?php echo $show;?></h2>
  <div class="col1 ui-corner-all ui-widget-content">
    <ul>
      <li class="<?php echo $show == 1 ? 'current' : '';?>"><a href="?step=1" >Site</a></li>
      <li class="<?php echo $show == 2 ? 'current' : '';?>"><a href="?step=2" >DataBase </a></li>
    </ul>
  </div>
  <div class="col2 ui-corner-all ui-widget-content">
<?php
include('step_'.$show.'.php');
?>
  </div>
</div>
<div class="clearfix" >&nbsp;</div>